1
2
3
4 package joeq.ClassLib.pa;
5
6 import java.util.Iterator;
7 import joeq.Class.jq_InstanceField;
8 import joeq.Class.jq_StaticField;
9 import joeq.ClassLib.ClassLibInterface;
10 import joeq.Runtime.ObjectTraverser;
11 import jwutil.util.Assert;
12
13
14
15
16
17
18
19
20
21
22 public final class Interface extends joeq.ClassLib.Common.InterfaceImpl {
23
24 /*** Creates new Interface */
25 public Interface() {}
26
27 public Iterator getImplementationClassDescs(joeq.UTF.Utf8 desc) {
28 if (ClassLibInterface.USE_JOEQ_CLASSLIB && desc.toString().startsWith("Ljava/")) {
29 joeq.UTF.Utf8 u = joeq.UTF.Utf8.get("Ljoeq/ClassLib/pa/"+desc.toString().substring(1));
30 return java.util.Collections.singleton(u).iterator();
31 }
32 return java.util.Collections.EMPTY_SET.iterator();
33 }
34
35 public ObjectTraverser getObjectTraverser() {
36 return new ObjectTraverser() {
37 public void initialize() { }
38 public Object mapStaticField(jq_StaticField f) { Assert.UNREACHABLE(); return null; }
39 public Object mapInstanceField(Object o, jq_InstanceField f) { Assert.UNREACHABLE(); return null; }
40 public Object mapValue(Object o) { Assert.UNREACHABLE(); return null; }
41 };
42 }
43 }